package com.asiainfo.ssm.execute.service.impl;

import java.rmi.RemoteException;

import com.ai.appframe2.service.ServiceFactory;
import com.asiainfo.ssm.execute.dao.interfaces.IExecOrderRespDAO;
import com.asiainfo.ssm.execute.ivalues.IBOExecOrderRespValue;
import com.asiainfo.ssm.execute.service.interfaces.IExecOrderRespSV;

public class ExecOrderRespSVImpl implements IExecOrderRespSV {

	@Override
	public void saveOrderResps(IBOExecOrderRespValue[] execOrderRespValues) throws Exception, RemoteException {
		IExecOrderRespDAO dao = (IExecOrderRespDAO) ServiceFactory.getService(IExecOrderRespDAO.class);
		dao.saveOrderResps(execOrderRespValues);
	}

	@Override
	public void saveOrderResp(IBOExecOrderRespValue execOrderRespValue) throws Exception, RemoteException {
		IExecOrderRespDAO dao = (IExecOrderRespDAO) ServiceFactory.getService(IExecOrderRespDAO.class);
		dao.saveOrderResp(execOrderRespValue);
	}

	@Override
	public IBOExecOrderRespValue[] getOrderRespList(int mod, int modValue,int rowNum) throws Exception, RemoteException {
		IExecOrderRespDAO dao = (IExecOrderRespDAO) ServiceFactory.getService(IExecOrderRespDAO.class);
		return dao.getOrderRespList(mod,modValue,rowNum);
	}

	@Override
	public void deleteOrderResps(IBOExecOrderRespValue[] execOrderRespValues) throws Exception, RemoteException {
		IExecOrderRespDAO dao = (IExecOrderRespDAO) ServiceFactory.getService(IExecOrderRespDAO.class);
		 dao.deleteOrderResps(execOrderRespValues);
	}

}
